<?php

namespace IDock\Insurance\ACIC\Request;

use Exception;
use IDock\Insurance\ACIC\Response\EPolicyDownloadResponse;
use IDock\Insurance\ACIC\Response\ProposalRecallResponse;
use IDock\Visitor\EPolicyDownloadVisitor;
use IDock\Visitor\ProposalRecallVisitor;

class EPolicyDownloadRequest extends AllACICRequest
{
    protected $code = 'Q50';

    protected $response = EPolicyDownloadResponse::class;

    protected $urlTip = '电子保单下载';

    /*** @var EPolicyDownloadVisitor  $visitor */
    protected $visitor;

    /**
     * @return array
     * @throws Exception
     */
    public function generate(): array
    {
        return [
            'PolicyNo' =>  $this->visitor->policyNo,
            'FileType' => '31'
        ];
    }
}